import Vue from 'vue'

import VueLazyload from 'vue-lazyload'
import 'vant/lib/index.css'
import icon from '../components/icon'

Vue.use(VueLazyload)
Vue.use(icon)


import {Button, Cell , Checkbox, Form, Picker, Radio, ActionSheet,Overlay,SwipeCell, List,Tag,Divider, PullRefresh, Loading, Dialog, ImagePreview} from 'vant'
const vants = {
    Button,
    Cell,
    Checkbox,
    Form,
    Picker,
    Radio,
    ActionSheet,
    Overlay,
    SwipeCell,
    List,
    Divider,
    Tag,
    PullRefresh,
    Loading,
    Dialog,
    ImagePreview
}
for (let k in vants) {
    Vue.use(vants[k])
}